package com.spring.demo.spring.core.applicationprocess.postprocessor;

import com.spring.demo.spring.core.annoation.ComponentFree;
import com.spring.demo.spring.core.context.BeanPostProcessor;
import org.springframework.beans.BeansException;

/**
 * @Author RenPu
 * @Date 2024/2/15 23:34
 * @Version 1.0
 * @Description:
 **/

@ComponentFree
public class AppBeanPostProcessor implements BeanPostProcessor {
    @Override
    public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {

        System.out.println(beanName);

        return bean;
    }
}
